package com.ly.honor.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ly.honor.entity.Player;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.honor.entity.dto.PlayerQueryDTO;
import com.ly.honor.entity.vo.PlayerQueryVO;
import com.ly.honor.entity.vo.PlayerSpreadVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 17798
* @description 针对表【bs_player】的数据库操作Mapper
* @createDate 2022-11-16 11:49:49
* @Entity com.ly.honor.entity.Player
*/
@Mapper
public interface PlayerMapper extends BaseMapper<Player> {

    Page<PlayerQueryVO> selectPlayerPage(Page<PlayerQueryVO> page, @Param("playerDTO") PlayerQueryDTO playerQueryDTO);

    PlayerQueryVO getPlayerById(@Param("id") long id);

    void retirePlayer(@Param("idList")List<Long> idList);

    void comebackPlayer(@Param("idList")List<Long> idList);

    List<PlayerSpreadVO> getPlayerSpread();

    List<PlayerQueryVO> getNowPlayerList();

    List<PlayerQueryVO> getRetirePlayerList();

    List<PlayerQueryVO> getPlayerListByCondition(@Param("playerDTO")PlayerQueryDTO playerQueryDTO);
}




